﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.DTO.Role
{
    /// <summary>
    /// 分页查询  请求参数
    /// </summary>
    public class PageSelectDTO
    {
        /// <summary>
        /// 页面大小
        /// </summary>
        [Required]
        [RegularExpression(@"\d")]
        public int pageSize { get; set; } = 999;

        /// <summary>
        /// 页码
        /// </summary>
        [Required]
        [RegularExpression(@"\d")]
        public int pageIndex { get; set; } = 1;

        /// <summary>
        /// 角色的名称
        /// </summary>
        public string? name { get; set; }
    }
}
